#!/usr/bin/ruby
# Generate random inputs

letters = ('A'..'Z').to_a

chosen = []

n = rand(24) + 2

puts n

n.times do
	chosen << letters.delete_at(rand(letters.size))
	puts chosen.last
end

matrix = []
chosen.each { matrix << [] }

chosen.each_index do |x|
	chosen.each_index do |y|
		if x == y
			matrix[x][y] = 0
		else
			matrix[x][y] = matrix[y][x] = rand(2)
		end
	end
end

matrix.each_index do |x|
	matrix.each_index do |y|
		print matrix[x][y].to_s + ' '
	end
	puts
end
